// 导航菜单折叠功能
document.addEventListener('DOMContentLoaded', function() {
    const menuItems = document.querySelectorAll('.ios-list-item > a');
    
    menuItems.forEach(item => {
        item.addEventListener('click', function(e) {
            e.preventDefault();
            const parent = this.parentElement;
            
            // 关闭其他打开的菜单
            const activeItems = document.querySelectorAll('.ios-list-item.active');
            activeItems.forEach(activeItem => {
                if (activeItem !== parent) {
                    activeItem.classList.remove('active');
                }
            });
            
            // 切换当前菜单
            parent.classList.toggle('active');
        });
    });
});